<template>
  <div class="container" @touchmove.prevent>
    <!-- <div class="title">
      <div class="box">
        <span class="text">项目合作</span>
      </div>
    </div> -->
    <navbar
      class="de-navbar"
      :vaniconL="true"
      :noRight="true"
      :noLeft="false"
      :vaniconR="true"
      iconNameL="arrow-left"
      iconNameR="setting-o"
      @clickLeft="goBack"
      bgcolor="rgb(55, 81, 255) !important"
      bgImage="linear-gradient(rgb(55, 81, 255) 0%, rgb(76, 99, 255) 50%, rgb(91 112 255) 75%, rgb(107 127 255) 100%) !important"
      >项目合作</navbar
    >
    <!-- <div style="height: 0.45rem"></div> -->
    <div class="i-btn">
      <div class="i-box" @click="coopertate">
        <img src="@/assets/images/cooperation.png" alt="" />
        <p>发起合作</p>
      </div>
      <div class="i-box" @click="partTime">
        <img src="@/assets/images/AI.png" alt="" />
        <p>AI兼职</p>
      </div>
    </div>
  </div>
</template>

<script>
import { Dialog, Toast } from "vant";
import { mapGetters } from "vuex";
import navbar from "@/components/navbar";
export default {
  name: "readList",
  components: { navbar },
  data() {
    return {
      headers: {
        authorization: "authorization-text",
      },
      fileCount: 0,
      sucessFileCount: 0,
      uploadStatus: 0,
      over: false,
      fileList: [],
      fileFlag: false,
      authorStatus: null,
    };
  },
  computed: {
    ...mapGetters(["userData"]),
  },
  created() {
    this.userDatas = JSON.parse(this.userData);
    // console.log(this.userDatas, 1);
    this.authorStatus = this.userDatas.authorizationStatus;
    window.scroll(0, 0);
  },
  methods: {
    // 点击发起合作
    coopertate() {
      this.$router.push({
        path: "/cooperation",
      });
    },
    // 点击AI兼职
    partTime() {
      this.$router.push({
        path: "/AIPartTime",
      });
    },

    toUpload() {
      if (this.authorStatus) {
        this.$router.push({
          path: "/upload",
        });
      } else {
        Toast({
          message: "注册后才能上传图片噢",
          icon: "warning-o",
        });

        Toast.setDefaultOptions({ duration: 1500 });
      }
    },
    // 新冠列表页
    toCovList() {
      this.$router.push({
        path: "/detailList",
      });
    },
    // 问题反馈
    toFeedBack() {
      this.$router.push({
        path: "/feedBack",
      });
    },
    // 肺结节列表
    toNoduleList() {
      this.$router.push({ path: "/drList" });
    },
    //
    toHelp() {
      Dialog.alert({
        title: "提示",
        message: "此模块正在完善中。。",
      }).then(() => {});
    },
    //演示案例
    toDemoList() {
      this.$router.push({ path: "/demoList" });
    },
    //
    goBack() {
      this.$router.replace({
        path: "/",
      });
    },
  },
};
</script>
<style lang="scss" scoped>
@import "../../assets/css/utils.css";
.container {
  position: relative;
  height: 100vh;
  background: #f5f5f5;
  & .title {
    width: 100%;
    height: 45px;
    position: fixed;
    top: 0;
    z-index: 10;
    background: #4775d9;
    background-image: linear-gradient(211deg, #5d5cbf 0%, #4775d9 100%);
    color: #fff;
    & .box {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    & .logo {
      width: 45px;
      vertical-align: middle;
    }
    & .text {
      vertical-align: middle;
      font-size: 16px;
      margin-left: 5px;
    }
  }
  & .analysis {
    width: 90%;
    height: 1rem;
    background: #ffffff;
    margin: auto;
    border: 1px solid #4775d94b;
    box-shadow: 0px 0px 8px #4775d949;
    border-radius: 10px;
    margin-bottom: 0.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    // & .icon {
    //   font-size: 0.3rem;
    //   color: #4775d9;
    // }
    & .van-image {
      vertical-align: middle;
    }
    & .text {
      font-size: 0.18rem;
      font-weight: 600;
      vertical-align: middle;
      margin-left: 0.1rem;
    }
  }
}
.boxa {
  // height: 200px;
  width: 200px;
  background-color: black;
}
.draw-enter-active,
.draw-leave-active {
  transition: all 1s ease;
}
.draw-enter, .draw-leave-to /* .fade-leave-active below version 2.1.8 */ {
  height: 0;
}
.i-btn {
  width: 90%;
  margin: 0 auto;
  margin-top: 0.1rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: 0.1rem;
  & .i-box {
    // float: left;
    // width: 50%;
    background: #ffffff;
    border: 1px solid #4775d94b;
    box-shadow: 0px 0px 8px #4775d949;
    border-radius: 10px;
    width: 1rem;
    margin-right: 0.15rem;
    & img {
      width: 1rem;
      height: 0.7rem;
      padding: 0.15rem 0.3rem;
      box-sizing: border-box;
    }
    & p {
      font-size: 0.14rem;
      margin-bottom: 0.1rem;
    }
  }
}
.uploadflag {
  background: #e4e4e4 !important;
}
</style>
